//
//  ClassifyDetailCollectionViewCell.m
//  Happy Kitchen
//
//  Created by mac_chen on 15/3/7.
//  Copyright (c) 2015年 mac_chen. All rights reserved.
//

#import "ClassifyDetailCollectionViewCell.h"

@implementation ClassifyDetailCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubviews];
    }
    return self;
}
// 布局子视图
- (void)addSubviews
{
    
    //食品图片imageView
    self.FoodImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height - 30)];
    
    self.FoodImageView.backgroundColor = [UIColor clearColor];
    
    [self.contentView addSubview:self.FoodImageView];
    
    
    //食品名称label
    self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.FoodImageView.frame.size.height, self.contentView.frame.size.width, self.contentView.frame.size.height - self.FoodImageView.frame.size.height)];
    
    self.nameLabel.font = [UIFont systemFontOfSize:13.0];
    self.nameLabel.textAlignment = NSTextAlignmentCenter;
    
    self.nameLabel.backgroundColor = [UIColor clearColor];
    
    [self.contentView addSubview:self.nameLabel];
    
    
    
}


@end
